
export type TaskType =
  | 'DATAX'
  | 'SHELL'
  | 'PYTHON'
  | 'SQL'
  | 'SPARK'
  | 'MR'
  | 'DATA_QUALITY'
  | 'SUB_PROCESS'
  | 'DEPENDENT'
  | 'CONDITIONS'
  | 'SWITCH'
  | 'HTTP'

export type TaskExecuteType = 'STREAM' | 'BATCH'

export const TASK_TYPES_MAP = {
  DATAX: {
    alias: 'DataX'
  },
  SHELL: {
    alias: 'SHELL'
  },
  PYTHON: {
    alias: 'PYTHON'
  },
  SQL: {
    alias: 'SQL'
  },
  SPARK: {
    alias: 'SPARK'
  },
  MR: {
    alias: 'MapReduce',
    helperLinkDisable: true
  },
  DATA_QUALITY: {
    alias: 'DATA_QUALITY',
    helperLinkDisable: true
  },
  SUB_PROCESS: {
    alias: 'SUB_PROCESS'
  },
  DEPENDENT: {
    alias: 'DEPENDENT'
  },
  CONDITIONS: {
    alias: 'CONDITIONS'
  },
  SWITCH: {
    alias: 'SWITCH'
  },
  HTTP: {
    alias: 'HTTP'
  }
} as {
  [key in TaskType]: {
    alias: string
    helperLinkDisable?: boolean
    taskExecuteType?: TaskExecuteType
  }
}
